#NoTrayIcon
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
RegRead, Status, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Policies\Explorer,Deny
if ErrorLevel=1
	{
		RegWrite,REG_SZ,HKEY_CURRENT_USER,Software\Microsoft\Windows\CurrentVersion\Policies\Explorer,Deny,0
		Status=0
	}
If Status=0
{
	RegWrite,REG_DWORD,HKEY_CURRENT_USER,Software\Microsoft\Windows\CurrentVersion\Policies\Explorer,NoViewOnDrive,67108863
	RegWrite,REG_DWORD,HKEY_CURRENT_USER,Software\Microsoft\Windows\CurrentVersion\Policies\Explorer,NoDrives,67108863
	RegWrite,REG_DWORD,HKEY_CURRENT_USER,Software\Microsoft\Windows\CurrentVersion\Policies\Explorer,NoRun,1
	RegWrite,REG_DWORD,HKEY_CURRENT_USER,Software\Microsoft\Windows\CurrentVersion\Policies\System,DisableRegedit,1
	RegWrite,REG_DWORD,HKEY_CURRENT_USER,Software\Microsoft\Windows\CurrentVersion\Policies\System,DisableRegistryTools,1
	RegWrite,REG_DWORD,HKEY_CURRENT_USER,Software\Microsoft\Windows\CurrentVersion\Policies\System,DisableTaskMgr,1
	RegWrite,REG_DWORD,HKEY_CURRENT_USER,Software\Microsoft\Windows\CurrentVersion\Policies\System,NoNetConnectDisconnect,1
	RegWrite,REG_DWORD,HKEY_CURRENT_USER,Software\Policies\Microsoft\Windows\System,DisableTaskmgr,1
	RegWrite,REG_DWORD,HKEY_CURRENT_USER,Software\Policies\Microsoft\Windows\System,DisableRegedit,1
	RegWrite,REG_DWORD,HKEY_CURRENT_USER,Software\Policies\Microsoft\Windows\System,DisableRegistryTools,1
	RegWrite,REG_SZ,HKEY_CURRENT_USER,Software\Microsoft\Windows\CurrentVersion\Policies\Explorer,Deny,1
	RegWrite,REG_DWORD,HKEY_CURRENT_USER,Software\Policies\Microsoft\MMC\{8FC0B734-A0E1-11D1-A7D3-0000F87571E3},RestrictToPermittedSnapins,1
	Process,Close,explorer.exe
	RegWrite,REG_DWORD,HKEY_CURRENT_USER,Software\Policies\Microsoft\Windows\System,DisableCMD,1
}
IniRead,deny,iacs.ini,LOCATION,Deny
if deny=1
{
	RegWrite,REG_SZ,HKEY_LOCAL_MACHINE,SOFTWARE\Microsoft\Windows\CurrentVersion\Run,IACSLock,C:\Windows\IA\IACSLock.exe
}
if deny=0
{
	RegDelete,HKEY_LOCAL_MACHINE,SOFTWARE\Microsoft\Windows\CurrentVersion\Run,IACSLock
}
ExitApp